package com.twxm.breed.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.twxm.breed.entity.DissolvedOxygen;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface DissolvedOxygenMapper extends BaseMapper<DissolvedOxygen> {
    void insertDissolvedOxygen(DissolvedOxygen dissolvedOxygen);

     Integer selectIdByPondIdAndCollectionTime(DissolvedOxygen dissolvedOxygen);

      void updateDissolvedOxygen(DissolvedOxygen dissolvedOxygen);

    List<DissolvedOxygen> getByPondId(String pondId);

    List<DissolvedOxygen> getOxygenInfo(String el);

    List<String> getPondId();

    List<DissolvedOxygen> getByPondIdAndDate(Map<String, Object> map);

    List<DissolvedOxygen> getOxygenByDate(Date date);

    Float getLatestOxygenByPondId(String pondId);
}
